ARM: make nr_irqs a constant
authorAndre Przywara <andre.przywara@linaro.org>
Tue, 6 Feb 2018 17:09:03 +0000 (17:09 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 8 Feb 2018 21:18:12 +0000 (13:18 -0800)
commit5eaa17357bbef0ae4962daa369573b4dbdee7e83
treee85b247340b5f7f846ac24c8294b89cacfd79936
parente7bc3a180a9c955ab0c7f115c15f5be127c11cb4
ARM: make nr_irqs a constant

On ARM the maximum number of IRQs is a constant, but we share it being
a variable to match x86. Since we are not supposed to alter it, let's
mark it as "const" to avoid accidental change.

Suggested-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/irq.c
xen/include/asm-arm/irq.h